package com.github.server.core;

import com.github.server.exception.HttpException;
import com.github.server.interfaces.HttpHandler;
import com.github.server.interfaces.HttpRequest;
import com.github.server.interfaces.HttpResponse;
import com.github.server.interfaces.ResourceMapping;

/**
 * @ClassName SimpleHandler
 * @description:
 * @author: biao532
 * @create: 2024-02-01 22:59
 * @Version 1.0
 **/
public abstract class SimpleHandler implements HttpHandler, ResourceMapping {
    private String path;
    public SimpleHandler(String path) {
        this.path = path;
    }

    @Override
    public String getPath() {
        return path;
    }

    @Override
    public HttpHandler getHandler() {
        return this;
    }
}
